<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>{$meta_title}_{:C('WEB_SITE_TITLE')}</title>
<include file="Public/s0_head"/>
<block name="exhead"></block>
</head>
<block name="body">
<body>
	<block name="loginbar">
	<!-- 顶部登录条 loginbar -->
	<div class="container-fluid loginbar">
		<div class="container">
			<div class="loginbar-info userInfo">
				<if condition="is_login()">
				<div class="dropdown">
					<div id="dLabel" class="fl">欢迎您<a role="button"  data-taget="#" data-toggle="dropdown" href="">&nbsp;&nbsp; <b>{:get_username()}&nbsp;<span class="fa fa-caret-down"></span></b></a></div>
					<span class="sep">|</span>
					<ul class="dropdown-menu userToggle" role="menu" aria-labelledby="dLabel">
					<img style="position:absolute;top:-7px;left:75px;index:1100;" src="http://c1.mifile.cn/f/i/2014/cn/icon/user-menu-arrow.png" />
						 <li><a rel="nofollow" href="index.php?s=/Home/center/index.html">个人中心</a></li>
						 <li><a rel="nofollow" href="index.php?s=/Home/center/collect.html">我的收藏</a></li>
						 <li><a rel="nofollow" href="index.php?s=/Home/center/coupon.html">优惠券</a></li>
						 <li><a rel="nofollow" href="index.php?s=/Home/center/comment.html">我的评论</a></li>
						 <li><a rel="nofollow" href="index.php?s=/Home/User/logout.html">退出</a></li>
				    </ul>
				<a href="index.php?s=/Home/center/allorder.html">我的订单</a>
				</div>
				<else />
				<a href="{:U('User/login')}">登录</a>
				<span class="sep">|</span>
				<a href="{:U('User/register')}">注册</a>
				</if>
			</div>
		</div>
	</div>
	<script type="text/javascript">
		$('#dLabel,.userToggle').hover(function(){
				$('.userToggle').css('display','block');
				},function(){
				$('.userToggle').css('display','none');
				});
	</script>
	<!-- 顶部登录条 loginbar end-->
	</block>

	<block name="site-body">
	<!-- 主体内容 site-body -->
	
		<block name="site-herder-nav">
		<!--导航条-->
		<div class="container site-header">
			<div class="row">
				<i class="fa fa-home fa-4x col-md-2"></i>
				<form  class="col-md-8" role="form" action="{:U('User/login')}" method="post">
					<div class="form-group site-search fr">
						<input type="text" class="form-control site-search-input fl" name="seach" placeholder="输入关键词搜索"/>
						<span style="border-left:1px solid rgb(230,230,230);margin-left:0px;height:43px;"class="sep fl"></span>
						<button type="submit" class="fa fa-search site-search-btn fl" /></button>
					</div>
				</form>
				<div class="col-md-2">
					<div class="site-shopCart"><i class="fa fa-shopping-cart"></i>&nbsp;&nbsp;购物车</div>
				</div>
			</div>
		</div>
		<br />
		<div class="container site-nav">
			<div class="row">
				<div class="site-category col-md-2">
					<li class="h4Title">全部商品分类</li>
					<div class="category-menu mborder">
						<volist name="categoryq" id="vo" offset="0" length="7">
						<div class="category-li" >
							<li class="h5Title">{$vo.title}</li>
							<volist name="vo.child" id="sub" offset="0" length="3">
							<li class="fl">{$sub.title}&nbsp;&nbsp;</li>
							</volist>
						</div>
						</volist>
					</div>
				</div>
				<div class="site-menu col-md-10">
				</div>
			</div>
		</div>
		<!--导航条 end -->
		</block>
		<block name="slide"><include file="Base/slide" /></block>
		
		<block name="goods">
		<div class="container">
			<!--div class="row" style="height:150px;"></div-->
			<volist name="category" id="vo" key="k" offset="0" length="2">
			<div class="row">
				<div class="col-md-12"><div class="h3Title floor-title">{$k}F &nbsp;&nbsp;{$vo.title}</div></div>
				<div class="col-md-3">
					<a href="{:U('Article/index?category='.$vo['name'])}" target="_blank"><img class="floor-img" src="{$vo.icon|get_cover='path'}"  /> </a>
				</div>
				<div class="col-md-9 nopadding">
					<volist name="vo.doc" id="goods" offset="0" length="4">
					<div class="col-md-3 goods">
						<a href="{:U('Article/detail?id='.$goods['id'])}" title="{$goods.title}">
							<div class="goods-pic">
								<img src="{$goods.cover_id|get_cover='path'}" alt="{$goods.tltle}" />
							</div>
							<div class="goods-title">{$goods.title|msubstr=0,28}</div>
							<div class="goods-price">￥{$goods.price} </div>
						</a>
						<div class="goods-addCart"><i class="fa fa-shopping-cart"></i>&nbsp;&nbsp;&nbsp;加入购物车</div>
					</div>
					</volist>
				</div>
			</div>
			</volist>
		</div>		
		<script type="text/javascript">
			$('.goods').hover(function(){
					$(this).addClass('goodsBorder');
					},function(){
					$(this).removeClass('goodsBorder');
					});
		</script>
		</block>
	<!-- 主体内容 site-body end-->
	</block>
	
	<block name="footer">
	<!-- 底部内容 footer-->
		<div class="container text-center">
			<br />
			<br />
			<li><a href="">常见问题</a></li>
			<br />
			<li><a href="">久茗轩茶叶有限公司版权所有-京ICP备10046444-京公网安备1101080212535</a></li>
		</div>
	<!-- 底部内容 footer end-->
	</block>	
</body>
</block>
</html>
